package cn.dnuihyy406.dnuifood_16110100406.model;

import cn.dnuihyy406.dnuifood_16110100406.bean.ShopBean;
import cn.dnuihyy406.dnuifood_16110100406.iface.ShopIface;
import cn.dnuihyy406.dnuifood_16110100406.listener.OnRetrofitListener;
import cn.dnuihyy406.dnuifood_16110100406.service.ShopService;
import cn.dnuihyy406.dnuifood_16110100406.service.UserService;

import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

public class ShopModel extends BaseModel implements ShopIface {
    private ShopService service;

    public ShopModel() {
        super();
        service = retrofit.create(ShopService.class);
    }

    @Override
    public void getAllShops(OnRetrofitListener listener) {
        Call call = service.getAllShops();
        bindCallBack(call, listener, 1);

    }
}